<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<script>
    let n = 10;
    function rev (num){
        return num * (-1);
    }
    console.log(rev(n))
</script>
</body>
</html>